// import { mgop } from '@aligov/jssdk-mgop'
import router from '@/router'
// import Vue from 'vue'
// import store from '@/store'
// import Cookies from 'js-cookie'
import _get from 'lodash/get'
const zwJs = window.ZWJSBridge

export const windowClose = () => {
    return new Promise((resolve, reject) => {
        zwJs.onReady(() => {
            zwJs.close().then(res => {
                resolve({ success: true, data: res })
            }).catch(error => {
                resolve({ success: false, errMsg: JSON.stringify(error), data: {} })
            })
        })
    })
}